package com.front.mapper;

import com.front.entity.TbStation;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;


public interface TbStationDao extends BaseMapper<TbStation> {

    // IPage<TbStation> (IPage<TbStation> page, @Param(Constants.WRAPPER) Wrapper<TbStation> queryWrapper);
    <E extends IPage<TbStation>> E queryAllStore(E page, int storeId);
    // IPage<TbStation> (IPage<TbStation> page, @Param(Constants.WRAPPER) Wrapper<TbStation> queryWrapper);
    <E extends IPage<TbStation>> E queryMune(E page, @Param("idle") Integer idle);


    IPage<TbStation> queryStation(Page<TbStation> page, QueryWrapper queryWrapper);
}

